
import request from "@/service/axios/index";

/**@description 字典相关API */
const dictApi = {
    /**@description 查询字典列表 */
    postDictList: (params = Object) => {
        return request.post({ url: '/system/dict/list', params })
    },

    /**@description 删除字典 */
    deleteDict: (dictNo) => {
        return request.delete({ url: '/system/dict/delete?dictNo=' + dictNo })
    },

    /**@description 添加字典 */
    createDict: (data) => {
        return request.post({ url: '/system/dict/create', data })
    },

    /**@description 加载全部字典配置表 */
    getDictConfig: () => {
        return request.get({ url: '/system/dict/getDictConfig' })
    },
}
export default dictApi;

